// 推荐列表
export const getRandList = (data) =>
	uni.http({
		url: "/man/popular_science/list",
		method: "get",
		data,
    	requestType: 'baby'
	});

// 科普详情
export const coupeDetails = (data) =>
	uni.http({
		url: '/man/popular_science/info',
		method: 'get',
		data,
    	requestType: 'baby'
	})

// 科普收藏
export function collectPopularApi(data) {
	return uni.http({
		url: '/man/popular_science/colloct',
		method: 'get',
		data,
    requestType: 'baby'
	})
}
// 动态收藏
export function sendColloct(data) {
	return uni.http({
		url: '/man/post/send_collect',
		method: 'get',
		data,
    requestType: 'baby'
	})
}

// 用户操作
export function userPostOpearte(data) {
	return uni.http({
		url: '/man/user/user_post_opearte',
		method: 'get',
		data,
    requestType: 'baby'
	})
}
// 发布动态
export function sendPost(data) {
	return uni.http({
		url: '/man/post/send_post',
		method: 'get',
		data,
    requestType: 'baby'
	})
}
// 动态列表
export const getDongList = (data) =>
	uni.http({
		url: "/man/post/list",
		method: "get",
		data,
    requestType: 'baby'
	});
// 动态详情
export function postInfo(data) {
	return uni.http({
		url: '/man/post/info',
		method: 'get',
		data,
    requestType: 'baby'
	})
}
export const publishPregnancyRecords = (data) =>
	uni.http({
		url: 'bb/PregnancyRecords/send_content',
		method: 'post',
		data,
		requestType: "baby"
	})

// 追加评论
export const addCommentApi = (data) =>
  uni.http({
    url: 'man/comment/publish',
    method: 'post',
    data,
    requestType: 'baby',
  })
 
// 点赞评论
export const zanCommentApi = (data) =>
  uni.http({
    url: 'man/comment/zan',
    method: 'post',
    data,
    requestType: 'baby',
  })
